package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class AssessAnswerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AssessAnswerExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAssessansweridIsNull() {
            addCriterion("assessAnswerId is null");
            return (Criteria) this;
        }

        public Criteria andAssessansweridIsNotNull() {
            addCriterion("assessAnswerId is not null");
            return (Criteria) this;
        }

        public Criteria andAssessansweridEqualTo(Integer value) {
            addCriterion("assessAnswerId =", value, "assessanswerid");
            return (Criteria) this;
        }

        public Criteria andAssessansweridNotEqualTo(Integer value) {
            addCriterion("assessAnswerId <>", value, "assessanswerid");
            return (Criteria) this;
        }

        public Criteria andAssessansweridGreaterThan(Integer value) {
            addCriterion("assessAnswerId >", value, "assessanswerid");
            return (Criteria) this;
        }

        public Criteria andAssessansweridGreaterThanOrEqualTo(Integer value) {
            addCriterion("assessAnswerId >=", value, "assessanswerid");
            return (Criteria) this;
        }

        public Criteria andAssessansweridLessThan(Integer value) {
            addCriterion("assessAnswerId <", value, "assessanswerid");
            return (Criteria) this;
        }

        public Criteria andAssessansweridLessThanOrEqualTo(Integer value) {
            addCriterion("assessAnswerId <=", value, "assessanswerid");
            return (Criteria) this;
        }

        public Criteria andAssessansweridIn(List<Integer> values) {
            addCriterion("assessAnswerId in", values, "assessanswerid");
            return (Criteria) this;
        }

        public Criteria andAssessansweridNotIn(List<Integer> values) {
            addCriterion("assessAnswerId not in", values, "assessanswerid");
            return (Criteria) this;
        }

        public Criteria andAssessansweridBetween(Integer value1, Integer value2) {
            addCriterion("assessAnswerId between", value1, value2, "assessanswerid");
            return (Criteria) this;
        }

        public Criteria andAssessansweridNotBetween(Integer value1, Integer value2) {
            addCriterion("assessAnswerId not between", value1, value2, "assessanswerid");
            return (Criteria) this;
        }

        public Criteria andAssesslabelidIsNull() {
            addCriterion("assessLabelId is null");
            return (Criteria) this;
        }

        public Criteria andAssesslabelidIsNotNull() {
            addCriterion("assessLabelId is not null");
            return (Criteria) this;
        }

        public Criteria andAssesslabelidEqualTo(Integer value) {
            addCriterion("assessLabelId =", value, "assesslabelid");
            return (Criteria) this;
        }

        public Criteria andAssesslabelidNotEqualTo(Integer value) {
            addCriterion("assessLabelId <>", value, "assesslabelid");
            return (Criteria) this;
        }

        public Criteria andAssesslabelidGreaterThan(Integer value) {
            addCriterion("assessLabelId >", value, "assesslabelid");
            return (Criteria) this;
        }

        public Criteria andAssesslabelidGreaterThanOrEqualTo(Integer value) {
            addCriterion("assessLabelId >=", value, "assesslabelid");
            return (Criteria) this;
        }

        public Criteria andAssesslabelidLessThan(Integer value) {
            addCriterion("assessLabelId <", value, "assesslabelid");
            return (Criteria) this;
        }

        public Criteria andAssesslabelidLessThanOrEqualTo(Integer value) {
            addCriterion("assessLabelId <=", value, "assesslabelid");
            return (Criteria) this;
        }

        public Criteria andAssesslabelidIn(List<Integer> values) {
            addCriterion("assessLabelId in", values, "assesslabelid");
            return (Criteria) this;
        }

        public Criteria andAssesslabelidNotIn(List<Integer> values) {
            addCriterion("assessLabelId not in", values, "assesslabelid");
            return (Criteria) this;
        }

        public Criteria andAssesslabelidBetween(Integer value1, Integer value2) {
            addCriterion("assessLabelId between", value1, value2, "assesslabelid");
            return (Criteria) this;
        }

        public Criteria andAssesslabelidNotBetween(Integer value1, Integer value2) {
            addCriterion("assessLabelId not between", value1, value2, "assesslabelid");
            return (Criteria) this;
        }

        public Criteria andAssesspersonidIsNull() {
            addCriterion("assessPersonId is null");
            return (Criteria) this;
        }

        public Criteria andAssesspersonidIsNotNull() {
            addCriterion("assessPersonId is not null");
            return (Criteria) this;
        }

        public Criteria andAssesspersonidEqualTo(String value) {
            addCriterion("assessPersonId =", value, "assesspersonid");
            return (Criteria) this;
        }

        public Criteria andAssesspersonidNotEqualTo(String value) {
            addCriterion("assessPersonId <>", value, "assesspersonid");
            return (Criteria) this;
        }

        public Criteria andAssesspersonidGreaterThan(String value) {
            addCriterion("assessPersonId >", value, "assesspersonid");
            return (Criteria) this;
        }

        public Criteria andAssesspersonidGreaterThanOrEqualTo(String value) {
            addCriterion("assessPersonId >=", value, "assesspersonid");
            return (Criteria) this;
        }

        public Criteria andAssesspersonidLessThan(String value) {
            addCriterion("assessPersonId <", value, "assesspersonid");
            return (Criteria) this;
        }

        public Criteria andAssesspersonidLessThanOrEqualTo(String value) {
            addCriterion("assessPersonId <=", value, "assesspersonid");
            return (Criteria) this;
        }

        public Criteria andAssesspersonidLike(String value) {
            addCriterion("assessPersonId like", value, "assesspersonid");
            return (Criteria) this;
        }

        public Criteria andAssesspersonidNotLike(String value) {
            addCriterion("assessPersonId not like", value, "assesspersonid");
            return (Criteria) this;
        }

        public Criteria andAssesspersonidIn(List<String> values) {
            addCriterion("assessPersonId in", values, "assesspersonid");
            return (Criteria) this;
        }

        public Criteria andAssesspersonidNotIn(List<String> values) {
            addCriterion("assessPersonId not in", values, "assesspersonid");
            return (Criteria) this;
        }

        public Criteria andAssesspersonidBetween(String value1, String value2) {
            addCriterion("assessPersonId between", value1, value2, "assesspersonid");
            return (Criteria) this;
        }

        public Criteria andAssesspersonidNotBetween(String value1, String value2) {
            addCriterion("assessPersonId not between", value1, value2, "assesspersonid");
            return (Criteria) this;
        }

        public Criteria andAssessanswertimeIsNull() {
            addCriterion("assessAnswerTime is null");
            return (Criteria) this;
        }

        public Criteria andAssessanswertimeIsNotNull() {
            addCriterion("assessAnswerTime is not null");
            return (Criteria) this;
        }

        public Criteria andAssessanswertimeEqualTo(String value) {
            addCriterion("assessAnswerTime =", value, "assessanswertime");
            return (Criteria) this;
        }

        public Criteria andAssessanswertimeNotEqualTo(String value) {
            addCriterion("assessAnswerTime <>", value, "assessanswertime");
            return (Criteria) this;
        }

        public Criteria andAssessanswertimeGreaterThan(String value) {
            addCriterion("assessAnswerTime >", value, "assessanswertime");
            return (Criteria) this;
        }

        public Criteria andAssessanswertimeGreaterThanOrEqualTo(String value) {
            addCriterion("assessAnswerTime >=", value, "assessanswertime");
            return (Criteria) this;
        }

        public Criteria andAssessanswertimeLessThan(String value) {
            addCriterion("assessAnswerTime <", value, "assessanswertime");
            return (Criteria) this;
        }

        public Criteria andAssessanswertimeLessThanOrEqualTo(String value) {
            addCriterion("assessAnswerTime <=", value, "assessanswertime");
            return (Criteria) this;
        }

        public Criteria andAssessanswertimeLike(String value) {
            addCriterion("assessAnswerTime like", value, "assessanswertime");
            return (Criteria) this;
        }

        public Criteria andAssessanswertimeNotLike(String value) {
            addCriterion("assessAnswerTime not like", value, "assessanswertime");
            return (Criteria) this;
        }

        public Criteria andAssessanswertimeIn(List<String> values) {
            addCriterion("assessAnswerTime in", values, "assessanswertime");
            return (Criteria) this;
        }

        public Criteria andAssessanswertimeNotIn(List<String> values) {
            addCriterion("assessAnswerTime not in", values, "assessanswertime");
            return (Criteria) this;
        }

        public Criteria andAssessanswertimeBetween(String value1, String value2) {
            addCriterion("assessAnswerTime between", value1, value2, "assessanswertime");
            return (Criteria) this;
        }

        public Criteria andAssessanswertimeNotBetween(String value1, String value2) {
            addCriterion("assessAnswerTime not between", value1, value2, "assessanswertime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}